<template>
  <el-dropdown>
    <img src="https://picsum.photos/200/200" alt="" class="avatar">
    <template #dropdown>
      <el-dropdown-menu>
        <el-dropdown-item>退出登录</el-dropdown-item>
        <el-dropdown-item>修改密码</el-dropdown-item>
      </el-dropdown-menu>
    </template>
  </el-dropdown>
</template>



<script lang="ts" setup>
</script>


<style lang="less" scoped>
.avatar{
  width: 35px;
  height: 35px;
  border-radius: 100%;
  cursor: pointer;
}
</style>